package com.device.auth.controller;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: pudong_device_config
 * @Author: jeecg-boot
 * @Date:   2024-06-02
 * @Version: V1.0
 */
@Data
@TableName("pudong_device_config")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class PudongDeviceConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**设备号*/
    private String deviceNo;

    /**所在站点*/
    private String sensorPoint;

    /**设备名称*/
    private String name;

    /**设备型号*/
    private String sensorType;

    /**SN码*/
    private String snCode;

    /**串*/
    private String imei;

    /**设备产地*/
    private String deviceOrigin;

    /**设备生产日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date deviceManufactureTime;

    /**设备地址*/
    private String address;

    /**设备经度*/
    private String longitu;

    /**设备纬度*/
    private String latitude;


    /**设备状态*/
    private String status;

    /**设备归属*/
    private String deviceHome;


    /**产品ID*/
    private String productId ;

    /**物联网ID*/
    private String deviceCtwingId;

    /**上报频率*/
    private String reportedTime;

    /**上报频率单位*/
    private String reportedTimeUnit;

    /** 开关类型 0 启动传输  1 停止传输*/
    private String dataSwitch;

    private String altitude;

    @TableLogic
    private String   deleted;

}
